<template>
  <div class="user-detil-container content-main flex-middle">
    <div class="user-detail-pic flex-center">
      <span v-if="!info.portrait" class="iconfont icon-touxiang"></span>
      <img v-else src="@/static/images/icon/logo.svg" alt="userpic" />
    </div>
    <div class="user-detail-name_signature flex-space">
      <div class="detail-content">
        <div class="user-detail-name">{{info.username}}</div>
        <div class="user-detail-signature ellipsis-l3">{{info.information || '暂无签名'}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    info: {
      type: Object,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
.user-detil-container {
  .user-detail-pic {
    width: 75px;
    height: 75px;
    margin-right: 15px;
    border: 1px solid var(--theme);
    background-color: #eee;

    .iconfont {
      font-size: 35px;
    }
  }

  .user-detail-name_signature {
    .user-detail-name {
      font-size: 18px;
    }

    .user-detail-signature {
      color: #666;
    }
  }
}
</style>